<?php

namespace App;


use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Spatie\Permission\Traits\HasRoles;
class Admin extends  Authenticatable
{
  use HasRoles;
    //设置不允许批量填充的字段数据;
    protected $guarded = [];
    //设置允许填充的字段
    //protected $fillable=[]
    //在这里定义一个属性，将remember_token值清空
    //防止报remember_token的错误
    protected $rememberTokenName='';
}
